﻿using System.ComponentModel.Composition;
using System.Windows.Controls;
using IntoNails.Infrastructure;
using IntoNails.Infrastructure.Views.Attributes;
using IntoNails.Modules.UserManagement.ViewModels;

namespace IntoNails.Modules.UserManagement.Views
{
	/// <summary>
	/// Interaction logic for UserManagementView.xaml
	/// </summary>
    [ViewExport(RegionName = RegionNames.WorkspaceRegion)]
    [PartCreationPolicy(CreationPolicy.NonShared)]
	public partial class UserManagementWorkspaceView : UserControl
	{
        public UserManagementWorkspaceView()
		{
			InitializeComponent();
		}

        [Import]
        public IUserWorkspaceViewModel ViewModel
        {
            get { return DataContext as IUserWorkspaceViewModel; }
            set { this.DataContext = value; }
        }
	}
}